import store from "@/store"

export const commonMixins = {
	methods:{
		backPageRefresh(){
			let pages = getCurrentPages();
			let i = 0;
			
			let beforePage = pages[pages.length - (2 + i)];
			if(beforePage && beforePage.$vm.loadmore){
				uni.navigateBack({
					delta: 1,
					success: function(){
						beforePage.$vm.loadmore();
					}
				})
			}else{
				history.back();
			}
		}
	}
}